<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <script type="text/javascript" src='./Js/jquery-1.7.2.min.js'></script>
        <script type="text/javascript">
           $(function (){
               $('#tj').click( function(){
                   var username=$("#username").val();
		  $.ajax('./rrr.php',{
                      type:"post",
                      data:{username:username,age:40},
                      success:function(msg){ alert(msg); }
                  });
                  return false;
                });
           });
       </script>
    </head>
    <body>
        <form action="">
            <input type="text" id="username"/>
            <input type="submit" value="提交"  id="tj">
        </form>
    </body>
</html>
